package com.example.mymenu;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO: This method is called when the BroadcastReceiver is receiving
        // an Intent broadcast.
        //throw new UnsupportedOperationException("Not yet implemented");
        String msg = intent.getStringExtra("columnsNumber");
        Toast toast = Toast.makeText(context,"数据库已更新，当前总数据数为" + msg,Toast.LENGTH_SHORT);
        toast.show();
    }
}